<template>
  <el-radio-group :value="status" @input="handleInput" class="vy-radio">
    <el-radio label="2">启用</el-radio>
    <el-radio label="9">禁用</el-radio>
  </el-radio-group>
</template>

<script>
  /*
    * 状态编辑组件
    * status 参数 2启用  9禁用
    *
    * */
  export default {
    name: "StatusEdit",
    model: {
      prop: "status",
      event: "input"
    },
    props: {
      status: {
        type: String,
        default: "2"
      }
    },
    methods: {
      handleInput(e) {
        this.$emit("input", e)
      }
    }
  }
</script>
